package com.squid.templateProject.service.user;


import com.baomidou.mybatisplus.extension.service.IService;
import com.squid.templateProject.bean.entity.UserEntity;
import com.squid.templateProject.bean.req.PageReq;
import com.squid.templateProject.bean.req.user.UserInsertUpdateReq;
import com.squid.templateProject.bean.req.user.UserSelectPageReq;
import com.squid.templateProject.bean.resp.PageResp;
import com.squid.templateProject.bean.resp.user.UserSelectPageResp;

/**
 * @author jinhang1
 * @description 针对表【user(用户表)】的数据库操作Service
 * @createDate 2024-01-23 17:08:02
 */
public interface UserEntityService extends IService<UserEntity> {


    /**
     * Description 新增
     *
     * @param req
     * @author jinhang1
     * @since 2024/01/24
     */
    void insertUser(UserInsertUpdateReq req);

    /**
     * Description 更新
     *
     * @param req
     * @author jinhang1
     * @since 2024/01/24
     */
    void updateUser(UserInsertUpdateReq req);

    /**
     * Description 删除
     *
     * @author jinhang1
     * @since 2024/01/24
     */
    void deleteUser(String id);

    /**
     * Description 分页
     *
     * @param req
     * @return {@link PageResp }<{@link UserSelectPageResp }>
     * @author jinhang1
     * @since 2024/01/24
     */
    PageResp<UserSelectPageResp> pageUser(PageReq<UserSelectPageReq> req);

}
